// Decompiled by Jad v1.5.7f. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   CMISuspendData.java

package com.iphaeton.lms.course.scorm12.datamodel.cmi;

import com.iphaeton.lms.course.scorm12.DebugIndicator;
import com.iphaeton.lms.course.scorm12.datamodel.Element;
import java.io.PrintStream;
import java.io.Serializable;

// Referenced classes of package com.iphaeton.lms.course.scorm12.datamodel.cmi:
//            CMICategory, CMIRequest, DMErrorManager

public class CMISuspendData extends CMICategory
    implements Serializable
{

    public CMISuspendData(String suspendData)
    {
        super(true);
        suspend_data = new Element(suspendData, "checkString4096", "NULL", true, true, true);
    }

    public CMISuspendData()
    {
        super(true);
        suspend_data = new Element("", "checkString4096", "NULL", true, true, true);
    }

    public Element getSuspendData()
    {
        return suspend_data;
    }

    public void setSuspendData(String inSuspendData)
    {
        suspend_data.setValue(inSuspendData);
    }

    public String performGet(CMIRequest theRequest, DMErrorManager dmErrorMgr)
    {
        String result = new String("");
        if(theRequest.hasMoreTokensToProcess())
        {
            if(_Debug)
            {
                System.out.println("Error - Data Model Element not implemented\n");
                System.out.println("Element being processed: " + theRequest.getRequest() + "element of the CMI Suspend Data " + "Data Model Category");
            }
            if(theRequest.isAKeywordRequest())
                dmErrorMgr.recGetKeyWordError(theRequest.getElement());
            else
                dmErrorMgr.recNotImplementedError(theRequest);
        } else
        {
            result = suspend_data.getValue();
        }
        theRequest.done();
        return result;
    }

    public void performSet(CMIRequest theRequest, DMErrorManager dmErrorMgr)
    {
        if(theRequest.hasMoreTokensToProcess())
        {
            if(_Debug)
            {
                System.out.println("Error - Data Model Element not implemented\n");
                System.out.println("Element being processed: " + theRequest.getRequest() + "element of the CMI Suspend Data " + "Data Model Category");
            }
            dmErrorMgr.recNotImplementedError(theRequest);
        } else
        {
            doSet(this, "suspend_data", theRequest.getValue(), dmErrorMgr);
        }
        theRequest.done();
    }

    private static final long serialVersionUID = 0xc619ffea54397fb7L;
    private static boolean _Debug;
    public Element suspend_data;

    static 
    {
        _Debug = DebugIndicator.ON;
    }
}
